package com.fausto.learnimprint.core.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author fausto
 * @since 2022-03-28
 */
@TableName("discuss")
public class Discuss implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论唯一id
     */
    @TableId(value = "discuss_id", type = IdType.AUTO)
    private Integer discussId;

    /**
     * 评论内容
     */
    private String discussBody;

    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime discussTime;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 博文id
     */
    private Integer blogId;

    public Integer getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Integer discussId) {
        this.discussId = discussId;
    }

    public String getDiscussBody() {
        return discussBody;
    }

    public void setDiscussBody(String discussBody) {
        this.discussBody = discussBody;
    }

    public LocalDateTime getDiscussTime() {
        return discussTime;
    }

    public void setDiscussTime(LocalDateTime discussTime) {
        this.discussTime = discussTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    @Override
    public String toString() {
        return "Discuss{" +
                "discussId=" + discussId +
                ", discussBody=" + discussBody +
                ", discussTime=" + discussTime +
                ", userId=" + userId +
                ", blogId=" + blogId +
                "}";
    }
}
